#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void init();

protected:
    void keyPressEvent(QKeyEvent *event) override;
    void keyReleaseEvent(QKeyEvent *ev) override;

private slots:
    void slot_menu_open_triggered();

    void slot_menu_clear_triggered();

    void slot_system_output_message(int type, const QString &message);

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
